package main

import (
	"testing"
)

func TestSum(t *testing.T) {
	tests := []struct {
		name string
		a    int
		b    int
		want int
	}{
		{"test1", 2, 3, 5},
		{"test2", 0, 0, 0},
		{"test3", -1, 1, 0},
		{"test4", 12, 14, 26},
	}

	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := Sum(tt.a, tt.b); got != tt.want {
				t.Errorf("sum of %d and %d is %d, expected is %d", tt.a, tt.b, got, tt.want)
			}
		})
	}
}